<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绩效考核系统</title>

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>

<script>
function findObj(theObj, theDoc) {
	var p, i, foundObj;

	if (!theDoc)
		theDoc = document;
	if ((p = theObj.indexOf("?")) > 0 && parent.frames.length) {
		theDoc = parent.frames[theObj.substring(p + 1)].document;
		theObj = theObj.substring(0, p);
	}
	if (!(foundObj = theDoc[theObj]) && theDoc.all)
		foundObj = theDoc.all[theObj];
	for (i = 0; !foundObj && i < theDoc.forms.length; i++)
		foundObj = theDoc.forms[i][theObj];
	for (i = 0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
		foundObj = findObj(theObj, theDoc.layers[i].document);
	if (!foundObj && document.getElementById)
		foundObj = document.getElementById(theObj);

	return foundObj;
}

function menuClick(obj)
{
	setTimeout(function(){parent.document.getElementById("myIframe").src = obj.title;isLoad = true;}, 1000);
	return;
	showLoad();
	$.post("login-menuClick.action",null,function()
	{
		setTimeout(function(){parent.document.getElementById("myIframe").src = obj.title;isLoad = true;}, 1000);
	});
}
</script>
<style type="text/css">
.collapsedFolder {
	font-family: gb2312;
	font-size: 12px;
	background-image: url(images/txt_1.gif);
	background-repeat: no-repeat;
	background-position: left;
	padding-left: 45px;
	cursor: hand;
}


.submenu {
	padding-left: 18px;
}

a {
	color: #000;
	text-decoration: none;
}

a:hover {
	color: #FF0000;
	background-color: #eeeeee;
	border: 1px solid #006699;
}

body {
	font-size: 12px;
	font-family: 宋体;
	margin: 0px;
	padding: 0px;
	color: #FFFFFF;
}

.explorer {
	background-color: #fff;
	background-image: url(images/left_bg.gif);
	background-position: top;
	background-repeat: repeat;
}

.iefile{
	background-image: url(images/ie.gif);
	background-repeat: no-repeat;
	background-position: left;
	padding-left: 20px;
	font-size: 12px;
}
</style>
</head>
<body>
<div style="padding: 0px 0px 9px; float: left; height: 100%; width: 170px; overflow: auto; background: none repeat scroll 0% 0% rgb(169, 212, 255);">

<table style="table-layout: fixed;" border="0" cellpadding="0"
	cellspacing="0" height="100%" width="100%">
	<tbody>
		<tr>
			<td class="explorer" id="menubar" align="center" valign="top"
				width="170">
			<table border="0" cellpadding="0" cellspacing="0" height="30"
				width="100%">
				<tbody>
					<tr>
						<td style="font-size: 12px; height: 30px;" align="left" background="images/left_top.jpg">&nbsp;</td>
					</tr>
				</tbody>
			</table>
			<table border="0" cellpadding="3" cellspacing="0" width="100%">
				<tbody>
					<!-- 
					<s:iterator value="#session.functionList" id="menu">
						<tr>
							<td class="collapsedFolder" onmouseup="with(findObj('<s:property value="#menu.menuId"/>').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(images/txt_2.gif)':'url(images/txt_1.gif)';}" height="30">
								<s:property value="#menu.menuName"/>
							</td>
						</tr>
						<tr>
							<td class="submenu" id='<s:property value="#menu.menuId"/>' style="display: none;">
								<table border="0" cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<s:iterator value="#menu.functionList" id="function">
											<tr>
												<td class="iefile">
													<a href='javascript:void(0);' target="main"  title='<s:property value="#function.functionUrl"/>' onclick="menuClick(this)">
														<s:property value="#function.functionName"/>
													</a>
												</td>
											</tr>
										</s:iterator>
									</tbody>
								</table>
							</td>
						</tr>
					</s:iterator>
					 -->
				 	<tr>
						<td class="collapsedFolder" onmouseup="with(findObj('attendance').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(images/txt_2.gif)':'url(images/txt_1.gif)';}" height="30">
							考勤管理
						</td>
					</tr>
					<tr>
						<td class="submenu" id='attendance' style="display: none;">
							<table border="0" cellpadding="2" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/attendance/attendance-list.action' onclick="menuClick(this)">
												日常考情
											</a>
										</td>
									</tr>
									<s:if test='#session._login_user_info.isAdmin'>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/attendance/attendance-add.action' onclick="menuClick(this)">
												日常考情录入
											</a>
										</td>
									</tr>
									</s:if>
								</tbody>
							</table>
						</td>
					</tr>
					<s:if test='#session._login_user_info.isAdmin'>
					<tr>
						<td class="collapsedFolder" onmouseup="with(findObj('publicEva').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(images/txt_2.gif)':'url(images/txt_1.gif)';}" height="30">
							公共考核
						</td>
					</tr>
					<tr>
						<td class="submenu" id='publicEva' style="display: none;">
							<table border="0" cellpadding="2" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/publiceva/publicItem-list.action' onclick="menuClick(this)">
												公共考核项目
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/publiceva/publicEva-add.action' onclick="menuClick(this)">
												公共考核录入
											</a>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
					<tr>
						<td class="collapsedFolder" onmouseup="with(findObj('jobEva').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(images/txt_2.gif)':'url(images/txt_1.gif)';}" height="30">
							岗位考核
						</td>
					</tr>
					<tr>
						<td class="submenu" id='jobEva' style="display: none;">
							<table border="0" cellpadding="2" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/jobeva/jobItem-list.action' onclick="menuClick(this)">
												岗位考核项目
											</a>
										</td>
									</tr><tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/jobeva/jobEvaEntry-add.action' onclick="menuClick(this)">
												岗位考核录入
											</a>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				 	<tr>
						<td class="collapsedFolder" onmouseup="with(findObj('system').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(images/txt_2.gif)':'url(images/txt_1.gif)';}" height="30">
							系统管理
						</td>
					</tr>
					<tr>
						<td class="submenu" id='system' style="display: none;">
							<table border="0" cellpadding="2" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/system/user-list.action' onclick="menuClick(this)">
												用户管理
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/system/job-list.action' onclick="menuClick(this)">
												岗位管理
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/system/worker-list.action' onclick="menuClick(this)">
												工作人员管理
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/system/legalDays-list.action' onclick="menuClick(this)">
												法定天数管理
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/system/config-edit.action' onclick="menuClick(this)">
												系统配置
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/system/database-operation.action' onclick="menuClick(this)">
												数据备份与还原
											</a>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
					</s:if>
					<tr>
						<td class="collapsedFolder" onmouseup="with(findObj('statistic').style){display=display=='none'?'':'none';this.style.backgroundImage=display!='none'?'url(images/txt_2.gif)':'url(images/txt_1.gif)';}" height="30">
							查询统计
						</td>
					</tr>
					<tr>
						<td class="submenu" id='statistic' style="display: none;">
							<table border="0" cellpadding="2" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/statistic/evaResult-list.action' onclick="menuClick(this)">
												考核结果查询
											</a>
										</td>
									</tr>
									<tr>
										<td class="iefile">
											<a href='javascript:void(0);' target="main"  title='<%=path %>/statistic/evaStatistic-list.action' onclick="menuClick(this)">
												考核结果统计
											</a>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
	</tbody>
</table>
</div>
</body>
</html>